//
//  SGHReverseList.h
//  ObjectiveCDemo20200321
//
//  Created by 远平 on 2021/11/24.
//  Copyright © 2021 远平. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
struct Node {
    NSInteger data;
    struct Node * next;
};

@interface SGHReverseList : NSObject

- (void)test;

// 链表反转
struct Node * reverseList(struct Node *head);
// 构造一个链表
struct Node * constructList(void);
// 打印链表中的数据
void printList(struct Node *head);

@end

NS_ASSUME_NONNULL_END
